Endoflip measurement of gastric and pyloric function